/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scheduler.core.utils;

/**
 *
 * @author vlad
 */
public class ValidationException extends Exception{
    public enum ErrorType { INVALID_PRIORITY, 
                            INVALID_NUMBER_OF_PRIORITIES }
    
    private ErrorType errorType;

    public ValidationException(ErrorType type, String message) {
        super(message);
        errorType = type;
    }

    public ErrorType getErrorType() {
        return errorType;
    }
}
